package com.vividstores.integration.mq;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;


@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
public class MQFileBundleHeader {
	private MQFileBundleType type;
	private String version;
	private Date sendTime;
	private Map<String, String> data = new HashMap<String, String>();
	private String description;

	public MQFileBundleType getType() {
		return type;
	}

	public void setType(MQFileBundleType type) {
		this.type = type;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	/**
	 * 文件传输请求关联的扩展信息
	 * 
	 * @param data 扩展数据，由应用程序协商和解析
	 */
	public Map<String, String> getData() {
		return data;
	}

	public void setData(Map<String, String> data) {
		this.data = data;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "MQFileBundleHeader [type=" + type + ", version=" + version
				+ ", sendTime=" + sendTime + ", data=" + data
				+ ", description=" + description + "]";
	}

}
